home *** CD-ROM | disk | FTP | other *** search
-
-
-
- iiiiffffllllTTTTiiiilllleeee((((3333)))) IIIImmmmaaaaggggeeee FFFFoooorrrrmmmmaaaatttt LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll iiiiffffllllTTTTiiiilllleeee((((3333))))
-
-
-
- NNNNAAAAMMMMEEEE
- iiiiffffllllTTTTiiiilllleeee3333DDDD - defines a simple 3-D rectangle
-
- IIIINNNNHHHHEEEERRRRIIIITTTTSSSS FFFFRRRROOOOMMMM
- This is a base class and therefore has no inheritance.
-
- HHHHEEEEAAAADDDDEEEERRRR FFFFIIIILLLLEEEE
- #include <ifl/iflTile.h>
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- This class is used to describe rectangles (tiles). It is mostly used to
- group together the six values describing the origin (_x,_y,_z) and size
- (_n_x,_n_y,_n_z) of a rectangle in a convenient way.
-
- This is a template class that can be used with any scalar data type; e.g,
- to construct a 3D integer tile use iflTile3D<int>, and iiiiffffllllTTTTiiiilllleeee3333DDDD<<<<ffffllllooooaaaatttt>>>>()
- for a 3D-float tile.
-
- The following is an example on how to use a 3D integer tile. iflTile
- object can be declared in the following way:
-
- // unitialized
- iflTile3D<int> tile;
-
- // initialized
- iflTile3D<int> tile(xStart, yStart, zStart,
- xSize, ySize, zSize);
- iflTile3D<int> tile(tileA, tileB);
-
-
- A useful function, ccccoooonnnnttttaaaaiiiinnnnssss(), is provided that can be used to determine
- if this tile fully contains another. An overloaded version allows
- maximum (_x,_y,_z) bounds to be specified that are use to clip the other
- tile; this version is used where a page might extend beyond the edge of
- an image. Also two operators == and != are provided to find out whether
- or not two tiles are the same.
-
- CCCCLLLLAAAASSSSSSSS MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN SSSSUUUUMMMMMMMMAAAARRRRYYYY
- CCCCoooonnnnssssttttrrrruuuuccccttttoooorrrrssss
-
- iflTile3D<type>()
-
- iflTile3D<type>(type X, type Y, type Z, type nX, type nY, type nZ)
-
- iflTile3D<type>(const iflTile3D& that)
- iflTile3D<type>(const iflTile2D<type>& that, type z=0, type nz=1)
-
- iflTile3D<type>(const iflTile3D<type>& a, const iflTile3D<type>& b)
- iflTile3D<type>(const iflTile3D<type>& a, const iflTile3D<type>& b,
- const iflTile3D<type>& c)
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- iiiiffffllllTTTTiiiilllleeee((((3333)))) IIIImmmmaaaaggggeeee FFFFoooorrrrmmmmaaaatttt LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll iiiiffffllllTTTTiiiilllleeee((((3333))))
-
-
-
- IIIInnnniiiittttiiiiaaaalllliiiizzzzaaaattttiiiioooonnnn
-
- iflTile3D<type>& init(type X, type Y, type Z,
- type Nx, type Ny, type Nz)
- iflTile3D<type>& init(const iflTile3D<type>& tile)
- iflTile3D<type>& init(const iflTile2D<type>& tile, type Z=0,
- type Nz=1)
-
-
- IIIInnnntttteeeerrrrsssseeeeccccttttiiiioooonnnn
-
- iflTile3D<type>& intersect(const iflTile3D<type>& a,
- const iflTile3D<type>& b)
- iflTile3D<type>& intersect(const iflTile3D<type>& a,
- const iflTile3D<type>& b,
- const iflTile3D<type>& c)
-
-
- BBBBoooouuuunnnnddddiiiinnnngggg bbbbooooxxxx
-
- iflTile3D<type>& boundingBox(const iflTile3D<type>& a,
- const iflTile3D<type>& b)
- iflTile3D<type>& boundingBox(const iflTile3D<type>& a,
- const iflTile3D<type>& b,
- const iflTile3D<type>& c)
-
-
- CCCChhhheeeecccckkkkiiiinnnngggg ffffoooorrrr ccccoooonnnnttttaaaaiiiinnnnmmmmeeeennnntttt
-
- int contains(type X, type Y, type Z) const
- int contains(const iflTile3D<type>& tile) const
- int contains(const iflTile3D<type>& tile,
- type xMax, type yMax, type zMax) const
-
-
- EEEEqqqquuuuaaaalllliiiittttyyyy ooooppppeeeerrrraaaattttoooorrrrssss
-
- int operator==(const iflTile3D<type>& tile) const
- int operator!=(const iflTile3D<type>& tile) const
-
-
- GGGGrrrroooowwww////sssshhhhrrrriiiinnnnkkkk aaaannnndddd ooooffffffffsssseeeetttt ooooppppeeeerrrraaaattttiiiioooonnnnssss
-
- void operator+=(const iflXY<tileType>& offset)
- void operator+=(const iflXYZ<tileType>& offset)
- void operator-=(const iflXY<tileType>& offset)
- void operator-=(const iflXYZ<tileType>& offset)
- void grow(const iflXY<tileType>& delta)
- void grow(const iflXYZ<tileType>& delta)
- void shrink(const iflXY<tileType>& delta)
- void shrink(const iflXYZ<tileType>& delta)
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- iiiiffffllllTTTTiiiilllleeee((((3333)))) IIIImmmmaaaaggggeeee FFFFoooorrrrmmmmaaaatttt LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll iiiiffffllllTTTTiiiilllleeee((((3333))))
-
-
-
- AAAAssssssssiiiiggggnnnnmmmmeeeennnntttt ooooppppeeeerrrraaaattttoooorrrrssss
-
- iflTile3D<type>& operator=(const iflTile2D<type>& tile)
- iflTile3D<type>& operator=(const iflTile3D<type>& tile)
-
-
- FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNSSSS
- iiiiffffllllTTTTiiiilllleeee3333DDDD(((())))
-
- iflTile3D<type>()
- iflTile3D<type>(type X, type Y, type Z, type nX, type nY, type nZ)
- iflTile3D<type>(const iflTile3D& that)
- iflTile3D<type>(const iflTile2D<type>& that, type Z=0, type nZ=1)
- iflTile3D<type>(const iflTile3D<type>& a, const iflTile3D<type>& b)
- iflTile3D<type>(const iflTile3D<type>& a, const iflTile3D<type>& b,
- const iflTile3D<type>& c)
-
-
- The first version with no arguments constructs an uninitialized
- iflTile3D. The second version constructs an iflTile3D with the
- origin set to (_X,_Y,_Z) and the size set to (_n_X,_n_Y,_n_Z). The third
- version constructs a copy of another 3D tile. The fourth version
- constructs a copy of another 3D tile and fills in the z attributes _Z
- and _n_Z. The fifth version constructs an iflTile3D whose origin and
- size are set to the intersection of the tiles specified by _a and _b.
- The final version constructs an iflTile3D whose origin and size are
- set to the intersection of the tiles specified by _a, _b and _c.
-
- bbbboooouuuunnnnddddiiiinnnnggggBBBBooooxxxx(((())))
-
- iflTile3D<type>& boundingBox(const iflTile3D<type>& a,
- const iflTile3D<type>& b)
- iflTile3D<type>& boundingBox(const iflTile3D<type>& a,
- const iflTile3D<type>& b,
- const iflTile3D<type>& c)
-
-
- The first version sets this object's origin and size to the
- intersection of the tiles specified by _a and _b. The second version
- sets this object's origin and size to the intersection of the tiles
- specified by _a, _b and _c. The returned value is a reference to this
- object.
-
- ccccoooonnnnttttaaaaiiiinnnnssss(((())))
-
- int contains(type X, type Y, type Z) const
- int contains(const iflTile3D<type>& tile) const
- int contains(const iflTile3D<type>& tile,
- type xMax, type yMax, type zMax) const
-
-
-
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-
-
-
- iiiiffffllllTTTTiiiilllleeee((((3333)))) IIIImmmmaaaaggggeeee FFFFoooorrrrmmmmaaaatttt LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll iiiiffffllllTTTTiiiilllleeee((((3333))))
-
-
-
- This function returns true if this object contains the point
- specified by (_X,_Y,_Z). The second version returns true if this
- object completely contains the iflTile3D specified by _t_i_l_e. The
- third version allows _t_i_l_e to be first clipped by the maximum bounds
- specified by _x_M_a_x, _y_M_a_x and _z_M_a_x before checking for containment.
-
- iiiinnnniiiitttt(((())))
-
- iflTile3D<type>& init(type X, type Y, type Z,
- type nX, type nY, type nZ)
- iflTile3D<type>& init(const iflTile3D<type>& tile)
- iflTile3D<type>& init(const iflTile2D<type>& tile,
- type Z=0, type nZ=1)
-
-
- The first version initializes this object with the origin set to
- (_X,_Y,_Z) and the size set to (_n_X,_n_Y,_n_Z). The second version
- initializes this object with a copy of the 3D tile specified by
- _t_i_l_e. The third version initializes this object with a copy of
- another 3D tile and fills in the z attributes _Z and _n_Z.
-
- ggggrrrroooowwww(((())))
-
- void grow(const iflXY<tileType>& delta)
- void grow(const iflXYZ<tileType>& delta)
-
-
- These methods grow the dimensions of this tile the amount indicated
- by the _x, _y, and, for the second form, _z, members of _d_e_l_t_a.
-
- iiiinnnntttteeeerrrrsssseeeecccctttt(((())))
-
- iflTile3D<type>& intersect(const iflTile3D<type>& a,
- const iflTile3D<type>& b)
- iflTile3D<type>& intersect(const iflTile3D<type>& a,
- const iflTile3D<type>& b,
- const iflTile3D<type>& c)
-
-
- The first version initializes this object with the origin and size
- set to the intersection of the tiles specified by _a and _b. The
- second version initializes this object with the origin and size set
- to the intersection of the tiles specified by _a, _b and _c.
-
- ooooppppeeeerrrraaaattttoooorrrr====(((())))
-
- iflTile3D<type>& operator=(const iflTile2D<type>& tile)
- iflTile3D<type>& operator=(const iflTile3D<type>& tile)
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 4444
-
-
-
-
-
-
- iiiiffffllllTTTTiiiilllleeee((((3333)))) IIIImmmmaaaaggggeeee FFFFoooorrrrmmmmaaaatttt LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll iiiiffffllllTTTTiiiilllleeee((((3333))))
-
-
-
- The first assingment operator copies the values from the 2D tile
- specified by _t_i_l_e and defaults z and nz to 0 and 1, respectively.
- The second version simply does the normal memberwise assignment
- operation.
-
- ooooppppeeeerrrraaaattttoooorrrr========(((())))
-
- int operator==(const iflTile3D<type>& tile) const
-
-
- Returns TRUE if _t_i_l_e is the same as 'this' tile, FALSE otherwise.
-
- ooooppppeeeerrrraaaattttoooorrrr!!!!====(((())))
-
- int operator!=(const iflTile3D<type>& tile) const
-
-
- Returns TRUE if _t_i_l_e is not the same as 'this' tile, FALSE
- otherwise.
-
- ooooppppeeeerrrraaaattttoooorrrr++++====(((())))
-
- void operator+=(const iflXY<tileType>& offset)
- void operator+=(const iflXYZ<tileType>& offset)
-
-
- These methods add an offset to the origin of this tile. The amount
- to be added is indicated by the _x, _y, and, for the second form, _z,
- members of _o_f_f_s_e_t.
-
- ooooppppeeeerrrraaaattttoooorrrr----====(((())))
-
- void operator-=(const iflXY<tileType>& offset)
- void operator-=(const iflXYZ<tileType>& offset)
-
-
- These methods subtract an offset from the origin of this tile. The
- amount to be subtracted is indicated by the _x, _y, and, for the
- second form, _z, members of _o_f_f_s_e_t.
-
- sssshhhhrrrriiiinnnnkkkk(((())))
-
- void shrink(const iflXY<tileType>& delta)
- void shrink(const iflXYZ<tileType>& delta)
-
-
- These methods shrink the dimensions of this tile the amount
- indicated by the _x, _y, and, for the second form, _z, members of
- _d_e_l_t_a.
-
-
-
-
-
-
- PPPPaaaaggggeeee 5555
-
-
-
-
-
-
- iiiiffffllllTTTTiiiilllleeee((((3333)))) IIIImmmmaaaaggggeeee FFFFoooorrrrmmmmaaaatttt LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll iiiiffffllllTTTTiiiilllleeee((((3333))))
-
-
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- iflTile2D
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 6666
-
-
-
-